//
//  HeZhuoSheCell.m
//  ZhuoxinAgriculture
//
//  Created by 左忠飞 on 16/11/11.
//  Copyright © 2016年 KKING. All rights reserved.
//

#import "HeZhuoSheCell.h"

@interface HeZhuoSheCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *contact;
@property (weak, nonatomic) IBOutlet UILabel *No;
@property (weak, nonatomic) IBOutlet UILabel *identity;
@property (weak, nonatomic) IBOutlet UILabel *org;

@end

@implementation HeZhuoSheCell

+ (instancetype)HZSCellWithTableView:(UITableView *)tableview {
    HeZhuoSheCell *cell = [[NSBundle mainBundle] loadNibNamed:@"HeZhuoSheCell" owner:nil options:nil].lastObject;
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setCellData:(NSDictionary *)cellData
{
    _cellData = cellData;
    
    self.icon.image = [UIImage imageNamed:cellData[@"icon"]];
    self.name.text = cellData[@"name"];
    self.contact.text = cellData[@"contact"];
    self.No.text = cellData[@"No"];
    self.identity = cellData[@"identity"];
    self.org = cellData[@"org"];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
